package com.flca.frw.util;

import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.ClipboardOwner;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;

public class SimpleClipboardHelper implements ClipboardOwner {

	public void  save(String aText)
	{
		Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
		StringSelection stringSelection = new StringSelection(aText);
		clipboard.setContents(stringSelection, this);
	}
	
//	public String  restore()
//	{
//		Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
//		clipboard.getContents(this);
//	}

	public void lostOwnership(Clipboard arg0, Transferable arg1) {
	}

}
